package eu.pago.chat.gui;

import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;

import javax.swing.JFrame;

public class MainClass {

	public static void main(String[] args) {
		JFrame loginFrame = new LoginFrame();
		loginFrame.setResizable(false);
		loginFrame.setSize(180, 350);
		loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		loginFrame.setTitle("PagoChat");

		Rectangle rct = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()
				.getDefaultConfiguration().getBounds();
		int x = (int) (rct.getMaxX() * 0.2) - loginFrame.getWidth();
		int y = (int) (rct.getMaxY() * 0.9) - loginFrame.getHeight();
		loginFrame.setLocation(x, y);
		loginFrame.setVisible(true);
	}
}
